#!/usr/bin/env python
#Base Server

import socket

host = ''
port = 51423

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind((host, port))

print "Waiting for connection..."

s.listen(1)

while True:
    clientsocket, clientaddr = s.accept()
    print "Get connection from ", clientsocket.getpeername()
    clientsocket.close()